/*
 * Copyright (c) 2019-2029 深圳金雅福控股集团有限公司 All Rights Reserved.FileName: RoutingDataSource.java @author 000062064@date: 19-6-10 上午11:19@date 2022/4/7
 */

package com.zhang.mysql;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @author 000062064
 * @title: RoutingDataSource
 * @projectName custom_ms
 * @description: 数据源路由
 * @date 2019/5/15 18:03
 */
public class RoutingDataSource extends AbstractRoutingDataSource {
    @Override
    protected Object determineCurrentLookupKey() {
        return DBContextHolder.get();
    }
}
